<v-modal class="vModal--default"  onclose="closeWindow()">
<style type="text/css">
.resultwindowcontent_title .resultwindowcontent_title_right>div {
    float: left;
    color: #39f;
    margin-left: 10px;
    cursor: pointer;
}
</style>
	<div class="resultwindow"  ng-controller="externalResultModal" style=" border-radius: 3px; height:80%; margin-top:2%;width:800px">
		<div class="head" style="height: 35px; line-height: 35px;border-bottom: 1px solid #eee;padding-bottom:10px;">
			<span style="font-size: larger;">试卷名称：{{name}} </span>
			<div class="close" ng-click="closeWindow()"><span>+</span></div>
		</div>
		<div class="resultwindowcontent" style="background-color: #fff; padding:10px;" >
			<div class="resultwindowcontent_title" style="padding-top: 15px;">
                <div class="resultwindowcontent_title_right">
                    <div class="traintask_top_add " ng-click="AddScore()">
                    <svg class="icon" aria-hidden="true"><use xlink:href="#icon-tianjia"></use></svg>
                    新增</div>            
                   <div class="traintask_top_select" ng-click="delinfo()">
                    <svg class="icon" aria-hidden="true"><use xlink:href="#icon-shanchu"></use></svg>
                    删除</div>      
				</div>
				<div class="resultwindowcontent_title_left">
					 <input type="text" ng-model="params.searchText" placeholder="请输入考试人员姓名" class="xiaoge" style=" padding:5px;">
				
					<span ng-click="GetList()"  style="padding: 4px;border: 1px solid #39f;color: #FFF;background: #39f;border-radius: 4px;cursor: pointer;"><svg class="icon"  aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-sousuo"></use></svg> 查询成绩</span>
					<!--<a style="margin-left: 8px;border: 1px solid #39f;color: #39f; background: #fff;padding: 4px;border-radius: 4px;text-decoration: none;margin-right: 5px;"  href="javascript:void(0)" ng-click="exportExcel()">导出Excel</a>-->
				</div>
			</div>

			<div class="resultwindowcontent_main" >
				<table class="tab" style="min-height:500px;">
					<thead><tr>
                        <th> <div class="traintask_main_liebiao_checkbox">
                            <div class="liebiaocheck-box" ng-click="selectAll()" ng-class="{selected:checkAll !=0 && checkAll == List.length}" style="position: inherit;">
                                <!--添加selected为选中样式-->
                                <span class="iconfont"></span>
                            </div>
                            <div class="traintask_main_liebiaoli_xiugai" ng-if="false">
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-xiugai"></use></svg>
                            </div>
                        </div></th>
						<th>考试人员</th>
						<th>导入日期</th>
						<th>成绩</th>
                        <th>是否合格</th>
						<th></th></tr>
					</thead>
					<tbody>
                         <tr ng-if="List.length <=0 && !Loading">
                            <td colspan="6">
                                <center style="margin:0 auto;">
                                    <img src="/images/null.png" />
                                </center>   
                            </td>
                        </tr>
						<tr  ng-repeat="resultlist in List">
                            <td class="tdshou"><div class="traintask_main_liebiao_checkbox">
                            <div class="liebiaocheck-box" ng-click="singleCheck(resultlist)" ng-class="{selected:resultlist.isSel}"  style="position: inherit;">
                                <!--添加selected为选中样式-->
                                <span class="iconfont"></span>
                            </div>
                        </div></td>
							<td style="width: 230px">
                            <!--<img src="/images/avatar.png" ng-src="{{resultlist.userPicture}}" width="24" height="24" class="touxiang" onerror="javascript:this.src='/images/avatar.png'">-->{{resultlist.userName}}</td>
							<td>{{resultlist.createDate}}</td>
							<td style="text-align: center;">{{resultlist.score}}分</td>
                             <td style="text-align: center;">{{resultlist.passScore<=resultlist.score?'合格':'不合格'}}</td>
							<td style=" color:#39f;">删除成绩</td>
						</tr>
					</tbody>
				</table>
				
			</div>
			<tm-pagination ng-show="List.length>0" conf="paginationConf" ></tm-pagination>
		</div>
        <!--人员选择器-->
            <selectormodal ng-if="personData.ApiOpen" apidata="personData"></selectormodal>
        <!--新增成绩弹框-->
            <div class="knowledgebase_select_move_body"   ng-if="showAdd" style="z-index:998">
                <div class="knowledgebase_select_move_bj">
                </div>
                <div class="knowledgexjwjcmm" style="margin-top: 10%;">
                   <div class="knowledgexjwjcmmbody">
                            <div class="knowledgexjwjcmmtitle">
                                <div>新增成绩</div>
                                <div class="knowledgexjwjcmmtitleright" ng-if="isbtnload">
                                    <btnloading isbtnload="isbtnload"></btnloading>
                                </div>
                                <div class="knowledgexjwjcmmtitleright" ng-click="saveScore()"  ng-if="!isbtnload">
                                    <svg class="icon" aria-hidden="true">
              <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-baocun"></use></svg>
                                    保存</div><!-- end ngIf: !isbtnload -->
                                <div class="close" ng-click="AddScore()">
                                    <span>+</span></div>
                            </div>
                            <ul class="knowledgexjwjcmmmain">
                                <li>
                                    <div style="float:left;line-height: 40px;">选择用户：</div> 
                                    <div style="float:left;line-height: 40px;"><img ng-if="addInfo.userId.length>0" src="/images/avatar.png" ng-src="{{addInfo.userimg}}" width="30" height="30" style="border-radius: 50%;" onerror="javascript:this.src='/images/avatar.png'">{{addInfo.username}}
                                        <svg class="icon" aria-hidden="true"  style="color:#39f;"  ng-click="openPerson($event)" ><use xlink:href="#icon-tianjia"></use></svg> 
                                      </div>
                                </li>
                                <li>
                                    <input type="number"  min="0" placeholder="请输入成绩" class="form-control" ng-model="addInfo.score">
                                </li>
                                <li>当前试卷的及格分为：{{passScore}} 分</li>
                            </ul>
                        </div>
                    </div>
                </div>
	</div>
     
</v-modal>
